package org.example.chapter8.protocol.response;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.chapter8.protocol.Packet;
import org.example.chapter8.session.Session;

import static org.example.chapter8.protocol.command.Command.GROUP_MESSAGE_RESPONSE;

@EqualsAndHashCode(callSuper = true)
@Data
public class GroupMessageResponsePacket extends Packet {

    private String fromGroupId;

    private Session fromUser;

    private String message;

    @Override
    public Byte getCommand() {
        return GROUP_MESSAGE_RESPONSE;
    }
}
